<?php
/**
 * 验证码
 */
!defined('IN_FRAME') && die('404 Page');
class c_captcha extends Controller {
    
    /**
     * 默认页
     */
    public function index() {
        $checkImg = new CheckImg();
//        $checkImg->BgColor = '#f5f5f5';
        $code = $checkImg->RandRSI();
        $_SESSION['check_img_code'] = strtolower($code);
        $_SESSION['check_img_code_expir'] = (time() + 300);
        $checkImg->Draw();
    }
}